/*
 * main header.h
 *
 *  Created on: Mar 30, 2012
 *      Author: Tri_D
 */

#ifndef MAIN_HEADER_H_
#define MAIN_HEADER_H_

#include <string.h>
#include <stdio.h>
#include <math.h>


// *** -------------------- Define data types independent of compilers ------------------------------------- *** 
typedef		unsigned char			uint8_t;
typedef		signed char 			int8_t;
typedef 	unsigned int			uint16_t;
typedef		signed int 				int16_t;
typedef		unsigned long			uint32_t;
typedef		signed long 			int32_t;
typedef		unsigned char			BOOL;
typedef		float 					float_t;

// *** ------------------- Definition for debug and comment ------------------------------------------------ ***
/* To comment any code out, do not use comment but apply the following practice
	#ifdef COMMENT_ON
		<code to be commented here>
	#endif

	This practice is to avoid the risk of allowing unexpected snipplets of code to be 
	compiled into the final executable 
*/
#define DEBUG						1
#define LITTLE_ENDIAN               1
#define BIG_ENDIAN                  2
#define COMPILER_ENDIAN             LITTLE_ENDIAN
#define PACKAGE_ENDIAN              LITTLE_ENDIAN

#ifndef FALSE
#define	FALSE						0
#endif

#ifndef TRUE
#define TRUE						!FALSE
#endif

#define	bit0		0x01
#define	bit1		0x02
#define	bit2		0x04
#define	bit3		0x08
#define	bit4		0x10
#define	bit5		0x20
#define	bit6		0x40
#define	bit7		0x80

#endif /* MAIN_HEADER_H_ */
